﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EntGuayasSLA.BL;
using EntGuayasSLA.BL.Archivos.Pdf;
using EntGuayasSLA.BL.Listas;
using EntGuayasSLA.BL.Listas.Criterias;
using Ext.Net;

namespace EGuayas.Web.Licenciamiento.promotor
{
    public partial class pgRegistrarse : pgBase
    {
       
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
            if (!X.IsAjaxRequest)
            {

                SetSessionPage pgSession = new SetSessionPage(SessionPage.PageUserReg, Valores.PageEvento_Nuevo);
                this.hddIdPageSession.SetValue(SessionPage.PageUserReg);
                X.Js.Call("pgFn.ShowViewDetailPanel");
            }
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }
        [DirectMethod(ShowMask = true)]
        public Boolean DeleteSession()
        {try{
            Session.Clear();
            Session.Abandon();
        }
        catch (Exception ex)
        {
            RegistrarLog(ex);
        }
            return (true);
        }
       
    
    }
}